package cn.tedu.lucky.draw.server.job.processor;

import cn.tedu.lucky.draw.server.protocol.po.Activity;
import org.springframework.batch.item.ItemProcessor;

public class ActivityExpirationProcessor implements ItemProcessor<Activity,Activity> {

    @Override
    public Activity process(Activity activity) throws Exception {
        //0表示待审核、1表示启用、2表示禁用、3表示已结束
        activity.setStatus(3);

        return activity;
    }
}
